package org.longsheng.learnspringboot.service.impl;

import org.longsheng.learnspringboot.service.WebFluxService;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * @author DingQiao
 */
@Service
public class WebFluxServiceImpl implements WebFluxService {

    @Override
    public String helloWebFlux(String id) {
        try {
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
        }

        return "Hello WebFlux " + id;
    }
}
